package com.learn.hibernatevalidator.chapter03.validation;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.util.Collections;
import java.util.List;

/**
 * @author: liyf
 * @create: 2025-01-01 22:56
 **/
public class Car {

    public Car(@NotNull String manufacturer) {
        //...
    }


    @ValidRacingCar
    public Car(String manufacturer, String team) {
        //...
    }

    public void drive(@Max(75) int speedInMph) {
        //...
    }

    @Size(min = 1)
    public List<Passenger> getPassengers() {
        //...
        return Collections.emptyList();
    }
}
